package com.kmust.dream.wanderingdream.product.service;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import com.kmust.dream.wanderingdream.product.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface ProductService extends IService<Product> {

    ResultBean getAllProducts();

    ResultBean getProductsPages(Integer type,Integer current, Integer size);

    ResultBean addProduct(Product product);

    ResultBean updateProduct(Product product);

    ResultBean deleteProductById(Integer productId);

    ResultBean getProductById(Integer productId);

    ResultBean getAllProductByCategoryId(Integer categoryId);

    ResultBean getMaxId();
}
